*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 022 bytes ***. 	31.12.2021 	00:27:51 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	00:27:51 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	00:27:59 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	00:27:59 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	00:28:00 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 022 bytes ***. 	31.12.2021 	00:28:01 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	00:28:01 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	00:28:48 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	00:28:48 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	00:28:48 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 024 bytes ***. 	31.12.2021 	00:33:41 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	00:33:41 	lx 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	00:35:31 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	00:35:31 	lx 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	00:37:31 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	00:37:31 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	00:37:36 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 874 bytes ***. 	31.12.2021 	00:40:26 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	00:40:26 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	00:40:31 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' ORDER BY pr.product_id INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4015, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	31.12.2021 	00:40:45 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 21, send count: 4, loop count: 3, bytes sent 326640 / -8040 remaining, total send time 384 µs. 	31.12.2021 	00:40:46 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	00:40:53 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	00:41:01 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	00:42:15 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	31.12.2021 	00:42:15 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	31.12.2021 	00:42:15 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	00:42:15 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	00:42:15 	lx 	(1. Application process)

  database connect time: 0.0009 seconds. 	31.12.2021 	00:42:15 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	31.12.2021 	00:42:15 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	31.12.2021 	00:42:15 	lx 	(1. Application process)

* preference 'system/nc_server_start.json', organization '0' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	00:42:15 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:553: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	31.12.2021 	00:42:15 	lx 	(1. Application process)

Tcp server 2 starting. 	31.12.2021 	00:42:15 	_lx_SERVER 	(5. Tcp Server 2)

Field has not been translated: [Product]Reserved. 	31.12.2021 	00:42:15 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Product]Fixed. 	31.12.2021 	00:42:15 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Product]Available. 	31.12.2021 	00:42:15 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Phase_Actual]Previous_Track_Time. 	31.12.2021 	00:42:15 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Order_Schedule]Can_Be_Manufactured. 	31.12.2021 	00:42:15 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Order_Schedule]Manufacturing_State. 	31.12.2021 	00:42:15 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

  database connect time: 0.0004 seconds. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01288d5aa0, size: 400. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

All plugins have been loaded. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

Mac address: f84d896921dc. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

--- server started in 0.0031 seconds, 2021-12-31 00:42:17, used memory 2986.8 kb --- 	 5. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	31.12.2021 	00:42:17 	lx 	(5. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-31 00:42:45
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 753
Content-Uncompressed-Length: 1113

LZ4. 	31.12.2021 	00:42:45 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	00:42:45 	lx 	(5. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	31.12.2021 	00:42:45 	lx 	(5. Tcp Server 2)

  database connect time: 0.0001 seconds. 	31.12.2021 	00:42:45 	lx 	(5. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	31.12.2021 	00:42:45 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	00:42:45 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 1. answer time: 00:00:00.00183
  
SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id
 FROM invoice inv
 WHERE inv.invoice_id <> ''
 ORDER BY inv.invoice_id. 	31.12.2021 	00:42:45 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	00:42:45 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	00:42:45 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	00:42:48 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 876 bytes ***. 	31.12.2021 	00:47:45 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	00:47:45 	lx 	(5. Tcp Server 2)

4D: SELECT _prf.record_id FROM _preference _prf WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json' INTO :_lx_atExe1
 - original query: SELECT name_id, text_value FROM _preference WHERE name_id = '_tab_co.json' OR name_id = '_tab_default.json'  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 2, first value: '_tab_default.json'
 - query name: new:dsql.sqlExecuteUnsafe. 	31.12.2021 	00:47:51 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.record_id IS NOT NULL LIMIT 2000 INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.name, co.company_number, co.address, co.post_code, co.post_office, co.send_type, co.way_of_delivery, co.info, co.creation_date, co.last_modification_date, co.modifier_id, co.transfer_id, co.change_id, co.record_id FROM company co  WHERE co.record_id IS NOT NULL  LIMIT 2000  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9,:_lx_adExe1,:_lx_adExe2,:_lx_atExe10,:_lx_atExe11,:_lx_atExe12,:_lx_atExe13
 - result _lx_atExe1 size: 160, first value: '1181'
 - query name: new:form/core/nc-list-form/query.json. 	31.12.2021 	00:47:52 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

SELECT COUNT(*) FROM company  INTO :_lx_alExe1
 - result _lx_alExe1 size: 1, first value: 160
 - query name: new:form/core/nc-list-form/query.json. 	31.12.2021 	00:47:52 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 719 bytes ***. 	31.12.2021 	00:48:06 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	00:48:06 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	00:57:46 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	00:57:47 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	00:57:48 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 019 bytes ***. 	31.12.2021 	01:02:34 	lx 	(5. Tcp Server 2)

closing socket '78'. 	31.12.2021 	01:02:34 	lx 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	01:08:00 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:08:00 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	01:08:06 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 866 bytes ***. 	31.12.2021 	01:08:07 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:08:07 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	01:08:28 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 873 bytes ***. 	31.12.2021 	01:08:31 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:08:31 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	01:11:16 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' ORDER BY pr.product_id INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4015, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	31.12.2021 	01:11:19 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 15, send count: 4, loop count: 3, bytes sent 326640 / -9775 remaining, total send time 270 µs. 	31.12.2021 	01:11:25 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	01:13:59 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' ORDER BY pr.product_id INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4015, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	31.12.2021 	01:14:01 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 17, send count: 4, loop count: 3, bytes sent 326640 / -11043 remaining, total send time 52 µs. 	31.12.2021 	01:14:02 	lx 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 930 bytes ***. 	31.12.2021 	01:14:36 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:14:36 	lx 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	01:16:45 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:16:45 	lx 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	01:18:04 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:18:04 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	01:18:38 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

Sql table name error, FROM table is not valid, sql: SELECT prf.name_id, prf.info, prf.json_data->>'iso_3166_1', prf.json_data->>'languages', prf.record_id
 FROM preference prf
 WHERE prf.name_id LIKE 'moloni\_%.' ESCAPE '\'
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5. 	31.12.2021 	01:19:20 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

SELECT prf.name_id, prf.info, prf.json_data->>'iso_3166_1', prf.json_data->>'languages', prf.record_id  FROM preference prf  WHERE prf.name_id LIKE 'moloni\_%.' ESCAPE '\'  ORDER BY prf.name_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/preference.json. 	31.12.2021 	01:19:20 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

sql: Error 0, Generic parsing error. Parsing failed in or around the following substring interval - ( 44, 46 ) - ...ata->>'is... (SQLS 1301)

SELECT prf.name_id, prf.info, prf.json_data->>'iso_3166_1', prf.json_data->>'languages', prf.record_id
 FROM preference prf
 WHERE prf.name_id LIKE 'moloni\_%.' ESCAPE '\'
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5
'
SELECT prf.name_id, prf.info, prf.json_data->>'iso_3166_1', prf.json_data->>'languages', prf.record_id
 FROM preference prf
 WHERE prf.name_id LIKE 'moloni\_%.' ESCAPE '\'
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5
'
 	31.12.2021 	01:19:20 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4d execute sql error -1: Error 0, Generic parsing error. Parsing failed in or around the following substring interval - ( 44, 46 ) - ...ata->>'is... (SQLS 1301)

SELECT prf.name_id, prf.info, prf.json_data->>'iso_3166_1', prf.json_data->>'languages', prf.record_id
 FROM preference prf
 WHERE prf.name_id LIKE 'moloni\_%.' ESCAPE '\'
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5. 	31.12.2021 	01:19:20 	_lx_SERVER 	(5. Tcp Server 2)

Sql table name error, FROM table is not valid, sql: SELECT prf.name_id, prf.info, prf.json_data->>'iso_3166_1', prf.json_data->>'languages', prf.record_id
 FROM preference prf
 WHERE prf.name_id LIKE 'moloni\_%.' ESCAPE '\'
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5. 	31.12.2021 	01:19:26 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

SELECT prf.name_id, prf.info, prf.json_data->>'iso_3166_1', prf.json_data->>'languages', prf.record_id  FROM preference prf  WHERE prf.name_id LIKE 'moloni\_%.' ESCAPE '\'  ORDER BY prf.name_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/preference.json. 	31.12.2021 	01:19:26 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

sql: Error 0, Generic parsing error. Parsing failed in or around the following substring interval - ( 44, 46 ) - ...ata->>'is... (SQLS 1301)

SELECT prf.name_id, prf.info, prf.json_data->>'iso_3166_1', prf.json_data->>'languages', prf.record_id
 FROM preference prf
 WHERE prf.name_id LIKE 'moloni\_%.' ESCAPE '\'
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5
'
SELECT prf.name_id, prf.info, prf.json_data->>'iso_3166_1', prf.json_data->>'languages', prf.record_id
 FROM preference prf
 WHERE prf.name_id LIKE 'moloni\_%.' ESCAPE '\'
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5
'
 	31.12.2021 	01:19:26 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 884 bytes ***. 	31.12.2021 	01:20:20 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:20:20 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	01:20:24 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	01:20:24 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	01:20:24 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 030 bytes ***. 	31.12.2021 	01:21:19 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:21:19 	lx 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	01:22:04 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:22:04 	lx 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	01:23:07 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:23:07 	lx 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	01:23:29 	lx 	(5. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:23:29 	lx 	(5. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	01:26:49 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	01:27:08 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	31.12.2021 	01:27:08 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	31.12.2021 	01:27:08 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	01:27:08 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	01:27:08 	lx 	(1. Application process)

  database connect time: 0.0020 seconds. 	31.12.2021 	01:27:08 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	31.12.2021 	01:27:08 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	31.12.2021 	01:27:08 	lx 	(1. Application process)

* preference 'system/nc_server_start.json', organization '0' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	01:27:08 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:553: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	31.12.2021 	01:27:08 	lx 	(1. Application process)

Tcp server 2 starting. 	31.12.2021 	01:27:08 	_lx_SERVER 	(4. Tcp Server 2)

Field has not been translated: [Product]Reserved. 	31.12.2021 	01:27:08 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Product]Fixed. 	31.12.2021 	01:27:08 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Product]Available. 	31.12.2021 	01:27:08 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Work_Phase_Actual]Previous_Track_Time. 	31.12.2021 	01:27:08 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Work_Order_Schedule]Can_Be_Manufactured. 	31.12.2021 	01:27:08 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Work_Order_Schedule]Manufacturing_State. 	31.12.2021 	01:27:08 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

  database connect time: 0.0005 seconds. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x013bbd9a30, size: 400. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

All plugins have been loaded. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

Mac address: f84d896921dc. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

--- server started in 0.0034 seconds, 2021-12-31 01:27:10, used memory 2990.4 kb --- 	 5. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	31.12.2021 	01:27:10 	lx 	(4. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-31 01:27:39
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 757
Content-Uncompressed-Length: 1113

LZ4. 	31.12.2021 	01:27:39 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	01:27:39 	lx 	(4. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	31.12.2021 	01:27:39 	lx 	(4. Tcp Server 2)

  database connect time: 0.0003 seconds. 	31.12.2021 	01:27:39 	lx 	(4. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	31.12.2021 	01:27:39 	lx 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	01:27:39 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

 1. answer time: 00:00:00.00270
  
SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id
 FROM invoice inv
 WHERE inv.invoice_id <> ''
 ORDER BY inv.invoice_id. 	31.12.2021 	01:27:39 	lx 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	01:27:39 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	01:27:39 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' ORDER BY pr.product_id INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4015, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	31.12.2021 	01:27:42 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

 -- tcp answer 4, send count: 4, loop count: 3, bytes sent 326640 / -4271 remaining, total send time 49 µs. 	31.12.2021 	01:27:42 	lx 	(4. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	01:27:44 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 867 bytes ***. 	31.12.2021 	01:28:52 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:28:52 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	01:29:41 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:29:41 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	01:30:10 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:30:10 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	01:31:57 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:31:57 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	01:35:10 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:35:10 	lx 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	01:39:22 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	01:39:22 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	01:39:22 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 030 bytes ***. 	31.12.2021 	01:40:32 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:40:32 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	01:43:03 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:43:03 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	01:46:27 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:46:27 	lx 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	01:46:30 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	01:46:30 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	01:46:30 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	01:46:32 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 022 bytes ***. 	31.12.2021 	01:49:15 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:49:15 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	01:51:42 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:51:42 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	01:54:02 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	01:54:02 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	02:01:47 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	02:01:47 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	02:02:26 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	02:02:26 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	02:08:28 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	02:08:28 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	02:09:58 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	02:09:58 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	02:10:45 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	02:10:45 	lx 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:11:09 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:11:09 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:11:09 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 038 bytes ***. 	31.12.2021 	02:11:37 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	02:11:37 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	02:13:18 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	02:13:18 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	02:13:57 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	02:13:57 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	02:14:08 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	02:14:08 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	02:16:51 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	02:16:51 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	02:17:49 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	02:17:49 	lx 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	31.12.2021 	02:20:07 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	02:20:07 	lx 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	02:21:00 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	02:21:18 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	31.12.2021 	02:21:18 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	31.12.2021 	02:21:18 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	02:21:18 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	02:21:18 	lx 	(1. Application process)

  database connect time: 0.0010 seconds. 	31.12.2021 	02:21:18 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	31.12.2021 	02:21:18 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	31.12.2021 	02:21:18 	lx 	(1. Application process)

* preference 'system/nc_server_start.json', organization '0' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	02:21:18 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:553: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	31.12.2021 	02:21:18 	lx 	(1. Application process)

Tcp server 2 starting. 	31.12.2021 	02:21:19 	_lx_SERVER 	(4. Tcp Server 2)

Field has not been translated: [Product]Reserved. 	31.12.2021 	02:21:19 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Product]Fixed. 	31.12.2021 	02:21:19 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Product]Available. 	31.12.2021 	02:21:19 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Work_Phase_Actual]Previous_Track_Time. 	31.12.2021 	02:21:19 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Work_Order_Schedule]Can_Be_Manufactured. 	31.12.2021 	02:21:19 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Work_Order_Schedule]Manufacturing_State. 	31.12.2021 	02:21:19 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

  database connect time: 0.0004 seconds. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0131c16700, size: 400. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

All plugins have been loaded. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

Mac address: f84d896921dc. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

--- server started in 0.0030 seconds, 2021-12-31 02:21:20, used memory 2992.0 kb --- 	 5. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	31.12.2021 	02:21:20 	lx 	(4. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-31 02:21:29
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 607
Content-Uncompressed-Length: 804

LZ4. 	31.12.2021 	02:21:29 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	02:21:29 	lx 	(4. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	31.12.2021 	02:21:29 	lx 	(4. Tcp Server 2)

  database connect time: 0.0002 seconds. 	31.12.2021 	02:21:29 	lx 	(4. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	31.12.2021 	02:21:29 	lx 	(4. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	02:21:29 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

 1. answer time: 00:00:00.00184
  
SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info
 FROM company co
 WHERE co.company_id <> ''
 ORDER BY co.company_id. 	31.12.2021 	02:21:29 	lx 	(4. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' ORDER BY pr.product_id INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4015, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	31.12.2021 	02:21:31 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

 -- tcp answer 2, send result: -1, send count: 3, loop count: 3, bytes sent 244980 / 70134 remaining, total send time 40 µs. 	31.12.2021 	02:21:31 	lx 	(4. Tcp Server 2)

 -- tcp answer 2, send count: 4, loop count: 4, bytes sent 326640 / -11526 remaining, total send time 1319 µs. 	31.12.2021 	02:21:31 	lx 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:21:33 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 024 bytes ***. 	31.12.2021 	02:26:26 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	02:26:26 	lx 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:26:39 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:26:39 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:26:39 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:26:44 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:35:36 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:35:36 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:35:36 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 036 bytes ***. 	31.12.2021 	02:35:46 	lx 	(4. Tcp Server 2)

closing socket '77'. 	31.12.2021 	02:35:46 	lx 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:38:34 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:38:35 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:38:35 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:39:27 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:39:27 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:39:45 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:42:23 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:42:23 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:42:25 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:43:55 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:43:55 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	02:43:55 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	02:48:38 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	02:48:41 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	02:48:58 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	31.12.2021 	02:48:58 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	31.12.2021 	02:48:58 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	02:48:58 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	02:48:59 	lx 	(1. Application process)

  database connect time: 0.0003 seconds. 	31.12.2021 	02:48:59 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	31.12.2021 	02:48:59 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	31.12.2021 	02:48:59 	lx 	(1. Application process)

* preference 'system/nc_server_start.json', organization '0' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	02:48:59 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:553: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	31.12.2021 	02:48:59 	lx 	(1. Application process)

Tcp server 2 starting. 	31.12.2021 	02:48:59 	_lx_SERVER 	(5. Tcp Server 2)

Field has not been translated: [Product]Reserved. 	31.12.2021 	02:48:59 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Product]Fixed. 	31.12.2021 	02:48:59 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Product]Available. 	31.12.2021 	02:48:59 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Phase_Actual]Previous_Track_Time. 	31.12.2021 	02:48:59 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Order_Schedule]Can_Be_Manufactured. 	31.12.2021 	02:48:59 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Order_Schedule]Manufacturing_State. 	31.12.2021 	02:48:59 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

  database connect time: 0.0003 seconds. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x011dcecfd0, size: 400. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

All plugins have been loaded. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

Mac address: f84d896921dc. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

--- server started in 0.0027 seconds, 2021-12-31 02:49:00, used memory 3016.1 kb --- 	 5. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	31.12.2021 	02:49:00 	lx 	(5. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-31 02:49:46
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 601
Content-Uncompressed-Length: 804

LZ4. 	31.12.2021 	02:49:46 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	02:49:46 	lx 	(5. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	31.12.2021 	02:49:46 	lx 	(5. Tcp Server 2)

  database connect time: 0.0002 seconds. 	31.12.2021 	02:49:46 	lx 	(5. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	31.12.2021 	02:49:46 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	02:49:55 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 1. answer time: 00:00:00.21259
  
SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info
 FROM company co
 WHERE co.company_id <> ''
 ORDER BY co.company_id. 	31.12.2021 	02:49:55 	lx 	(5. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	02:49:59 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	02:51:16 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	02:52:10 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	02:52:47 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	02:53:44 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x011dcecfd0. 	31.12.2021 	02:54:29 	lx 	(5. Tcp Server 2)

Tcp server 2 is not running. 	31.12.2021 	02:54:38 	_lx_SERVER 	(6. tbl_ 5)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	02:58:13 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	31.12.2021 	02:58:13 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	31.12.2021 	02:58:13 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	02:58:13 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	02:58:13 	lx 	(1. Application process)

  database connect time: 0.0004 seconds. 	31.12.2021 	02:58:13 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	31.12.2021 	02:58:13 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	31.12.2021 	02:58:13 	lx 	(1. Application process)

* preference 'system/nc_server_start.json', organization '0' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	02:58:13 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:553: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	31.12.2021 	02:58:13 	lx 	(1. Application process)

Tcp server 2 starting. 	31.12.2021 	02:58:13 	_lx_SERVER 	(4. Tcp Server 2)

Field has not been translated: [Product]Reserved. 	31.12.2021 	02:58:13 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Product]Fixed. 	31.12.2021 	02:58:13 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Product]Available. 	31.12.2021 	02:58:13 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Work_Phase_Actual]Previous_Track_Time. 	31.12.2021 	02:58:13 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Work_Order_Schedule]Can_Be_Manufactured. 	31.12.2021 	02:58:13 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

Field has not been translated: [Work_Order_Schedule]Manufacturing_State. 	31.12.2021 	02:58:13 	_lang STRUCTURE_TRANSLATE 	(5. tbl_ 4)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

  database connect time: 0.0002 seconds. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012ff204e0, size: 400. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

All plugins have been loaded. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

Mac address: f84d896921dc. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

--- server started in 0.0025 seconds, 2021-12-31 02:58:15, used memory 2987.9 kb --- 	 5. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	31.12.2021 	02:58:15 	lx 	(4. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-31 03:10:01
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 769
Content-Uncompressed-Length: 1051

LZ4. 	31.12.2021 	03:10:01 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	03:10:01 	lx 	(4. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	31.12.2021 	03:10:01 	lx 	(4. Tcp Server 2)

  database connect time: 0.0002 seconds. 	31.12.2021 	03:10:01 	lx 	(4. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	31.12.2021 	03:10:01 	lx 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	03:10:01 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	31.12.2021 	03:11:23 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

 1. answer time: 00:00:01.98899
  
SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number. 	31.12.2021 	03:11:23 	lx 	(4. Tcp Server 2)

4d execute sql error -1: Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4


SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4. 	31.12.2021 	03:11:23 	_lx_SERVER 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	03:11:51 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	31.12.2021 	03:11:51 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	03:12:04 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	31.12.2021 	03:12:04 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4015, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	31.12.2021 	03:13:01 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

 -- tcp answer 4, send count: 4, loop count: 3, bytes sent 326640 / -6889 remaining, total send time 8 µs. 	31.12.2021 	03:13:01 	lx 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	03:13:04 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	31.12.2021 	03:13:31 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

Starting to stop tcp server 2, max. delay 1,7 seconds... 	31.12.2021 	03:14:34 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	31.12.2021 	03:14:34 	lx 	(4. Tcp Server 2)

closing socket '72'. 	31.12.2021 	03:14:34 	lx 	(4. Tcp Server 2)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	31.12.2021 	03:14:34 	lx 	(4. Tcp Server 2)

closing socket '73'. 	31.12.2021 	03:14:34 	lx 	(4. Tcp Server 2)

 -- Server statistics --
answerCount:          5
poll.fd_count:        1
pollCount:            36264
pollInCount:          6
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   5088
totalBytesSent:       84060. 	31.12.2021 	03:14:34 	lx 	(4. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 88
. 	31.12.2021 	03:14:34 	lx 	(4. Tcp Server 2)

closing socket '88'. 	31.12.2021 	03:14:34 	lx 	(4. Tcp Server 2)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x012ff204e0. 	31.12.2021 	03:14:34 	lx 	(4. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x012ff204e0, size: 400. 	31.12.2021 	03:14:34 	lx 	(4. Tcp Server 2)

--- server stopped ---. 	31.12.2021 	03:14:34 	lx 	(4. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x012ff204e0. 	31.12.2021 	03:14:34 	lx 	(4. Tcp Server 2)

Tcp server 2 stopped. 	31.12.2021 	03:14:34 	_lx_SERVER 	(4. Tcp Server 2)

Tcp server 2 is not running. 	31.12.2021 	03:45:47 	_lx_SERVER 	(5. tbl_ 4)

Tcp server 2 starting. 	31.12.2021 	03:45:58 	_lx_SERVER 	(4. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	03:45:59 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	31.12.2021 	03:45:59 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	31.12.2021 	03:45:59 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	03:45:59 	lx 	(4. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	03:45:59 	lx 	(4. Tcp Server 2)

  database connect time: 0.0004 seconds. 	31.12.2021 	03:45:59 	lx 	(4. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	31.12.2021 	03:45:59 	lx 	(4. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x017e771b20, size: 400. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

All plugins have been loaded. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

Mac address: f84d896921dc. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

--- server started in 0.0089 seconds, 2021-12-31 03:46:00, used memory 2992.0 kb --- 	 5. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	31.12.2021 	03:46:00 	lx 	(4. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-31 03:46:05
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 607
Content-Uncompressed-Length: 804

LZ4. 	31.12.2021 	03:46:05 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	03:46:05 	lx 	(4. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	31.12.2021 	03:46:05 	lx 	(4. Tcp Server 2)

  database connect time: 0.0001 seconds. 	31.12.2021 	03:46:05 	lx 	(4. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	31.12.2021 	03:46:05 	lx 	(4. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	03:46:05 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

 1. answer time: 00:00:00.00180
  
SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info
 FROM company co
 WHERE co.company_id <> ''
 ORDER BY co.company_id. 	31.12.2021 	03:46:05 	lx 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	03:46:08 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	31.12.2021 	03:46:08 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4d execute sql error -1: Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4


SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4. 	31.12.2021 	03:46:08 	_lx_SERVER 	(4. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	03:48:40 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	03:48:41 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	31.12.2021 	03:48:41 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

*** tcp close for sock 89, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 048 bytes ***. 	31.12.2021 	03:48:45 	lx 	(4. Tcp Server 2)

closing socket '89'. 	31.12.2021 	03:48:45 	lx 	(4. Tcp Server 2)

Starting to stop tcp server 2, max. delay 1,7 seconds... 	31.12.2021 	03:48:52 	_lx_SERVER 	(5. tbl_ 4)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	31.12.2021 	03:48:52 	lx 	(4. Tcp Server 2)

closing socket '73'. 	31.12.2021 	03:48:52 	lx 	(4. Tcp Server 2)

*** tcp close for sock 88, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	31.12.2021 	03:48:52 	lx 	(4. Tcp Server 2)

closing socket '88'. 	31.12.2021 	03:48:52 	lx 	(4. Tcp Server 2)

 -- Server statistics --
answerCount:          4
poll.fd_count:        0
pollCount:            6952
pollInCount:          5
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  3/3
totalBytesReceived:   3848
totalBytesSent:       25292. 	31.12.2021 	03:48:52 	lx 	(4. Tcp Server 2)

--- server stopped ---. 	31.12.2021 	03:48:52 	lx 	(4. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x017e771b20. 	31.12.2021 	03:48:52 	lx 	(4. Tcp Server 2)

Tcp server 2 stopped. 	31.12.2021 	03:48:52 	_lx_SERVER 	(4. Tcp Server 2)

Tcp server 2 starting. 	31.12.2021 	04:23:31 	_lx_SERVER 	(4. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

  database connect time: 0.0007 seconds. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x028006eb40, size: 400. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

All plugins have been loaded. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

Mac address: f84d896921dc. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

--- server started in 0.0062 seconds, 2021-12-31 04:23:33, used memory 2991.4 kb --- 	 5. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	31.12.2021 	04:23:33 	lx 	(4. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-31 04:23:45
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 776
Content-Uncompressed-Length: 1051

LZ4. 	31.12.2021 	04:23:45 	lx 	(4. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	31.12.2021 	04:23:45 	lx 	(4. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	31.12.2021 	04:23:45 	lx 	(4. Tcp Server 2)

  database connect time: 0.0003 seconds. 	31.12.2021 	04:23:45 	lx 	(4. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	31.12.2021 	04:23:45 	lx 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	04:23:45 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	31.12.2021 	04:23:45 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

 1. answer time: 00:00:00.00136
  
SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number. 	31.12.2021 	04:23:45 	lx 	(4. Tcp Server 2)

4d execute sql error -1: Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4


SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4. 	31.12.2021 	04:23:45 	_lx_SERVER 	(4. Tcp Server 2)

*** tcp close for sock 90, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 047 bytes ***. 	31.12.2021 	04:23:46 	lx 	(4. Tcp Server 2)

closing socket '90'. 	31.12.2021 	04:23:46 	lx 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	04:24:32 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	31.12.2021 	04:24:32 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

*** tcp close for sock 90, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 038 bytes ***. 	31.12.2021 	04:25:18 	lx 	(4. Tcp Server 2)

closing socket '90'. 	31.12.2021 	04:25:18 	lx 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:25:27 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:25:29 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:25:30 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	04:25:40 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	31.12.2021 	04:25:40 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

*** tcp close for sock 90, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 044 bytes ***. 	31.12.2021 	04:26:13 	lx 	(4. Tcp Server 2)

closing socket '90'. 	31.12.2021 	04:26:13 	lx 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	04:26:27 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	31.12.2021 	04:26:27 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	04:26:43 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	31.12.2021 	04:26:43 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	04:27:25 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4015, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	31.12.2021 	04:27:27 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

 -- tcp answer 10, send count: 4, loop count: 3, bytes sent 326640 / -10858 remaining, total send time 5 µs. 	31.12.2021 	04:27:28 	lx 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	04:27:29 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	31.12.2021 	04:27:29 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	04:30:20 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	31.12.2021 	04:30:20 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	04:30:26 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:35:25 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:35:25 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:35:25 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

*** tcp close for sock 90, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 018 bytes ***. 	31.12.2021 	04:38:15 	lx 	(4. Tcp Server 2)

closing socket '90'. 	31.12.2021 	04:38:15 	lx 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:38:21 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:38:21 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:38:21 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

*** tcp close for sock 90, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 027 bytes ***. 	31.12.2021 	04:40:27 	lx 	(4. Tcp Server 2)

closing socket '90'. 	31.12.2021 	04:40:27 	lx 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:40:34 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:40:35 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:40:35 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:43:02 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:43:03 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	31.12.2021 	04:43:03 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

*** tcp close for sock 90, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 030 bytes ***. 	31.12.2021 	04:44:16 	lx 	(4. Tcp Server 2)

closing socket '90'. 	31.12.2021 	04:44:16 	lx 	(4. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4015, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	31.12.2021 	04:44:23 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

 -- tcp answer 26, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 150397 remaining, total send time 3 µs. 	31.12.2021 	04:44:24 	lx 	(4. Tcp Server 2)

 -- tcp answer 26, send count: 4, loop count: 4, bytes sent 326640 / -12923 remaining, total send time 1296 µs. 	31.12.2021 	04:44:24 	lx 	(4. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	31.12.2021 	04:45:58 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	31.12.2021 	04:46:00 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	31.12.2021 	04:46:00 	_lx_ExecuteSqlNew 	(4. Tcp Server 2)

*** tcp close for sock 88, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	31.12.2021 	04:57:33 	lx 	(4. Tcp Server 2)

closing socket '88'. 	31.12.2021 	04:57:33 	lx 	(4. Tcp Server 2)

*** tcp close for sock 89, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	31.12.2021 	04:57:33 	lx 	(4. Tcp Server 2)

closing socket '89'. 	31.12.2021 	04:57:33 	lx 	(4. Tcp Server 2)

 -- Server statistics --
answerCount:          28
poll.fd_count:        1
pollCount:            88104
pollInCount:          35
pollOutCount:         0
pollCloseCount:       6
pollErrCount:         0
fd add/remove count:  9/8
totalBytesReceived:   28246
totalBytesSent:       212247. 	31.12.2021 	04:57:33 	lx 	(4. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 90
. 	31.12.2021 	04:57:33 	lx 	(4. Tcp Server 2)

closing socket '90'. 	31.12.2021 	04:57:33 	lx 	(4. Tcp Server 2)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x028006eb40. 	31.12.2021 	04:57:33 	lx 	(4. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x028006eb40, size: 400. 	31.12.2021 	04:57:33 	lx 	(4. Tcp Server 2)

--- server stopped ---. 	31.12.2021 	04:57:33 	lx 	(4. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x028006eb40. 	31.12.2021 	04:57:33 	lx 	(4. Tcp Server 2)

